import server from '@/config/server/index.js'

let api = {
  customerCreate: server.api().post('/api/customer/addOrEditCustomer'),
  assetList: server.api().post('/api/property/pageList')
}

function customerCreate(info) {
  return api.customerCreate.fetch(info)
}

function assetList(info = {}) {
  info.rows = 130
  info.shelvesStatus = 1
  return api.assetList.fetch(info)
}

export default {
  customerCreate,
  assetList
}
